<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新增</title>
    <script src="../js/layui/layui.js"></script>
    <link rel="stylesheet" href="../js/layui/css/layui.css"/>
</head>
<body>
<form class="layui-form" id="jiaoYuForm" method="post" lay-filter="companyFilter">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">时间</label>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="text" name="createTime" lay-verify="date" id="date" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid">-</div>
            <div class="layui-input-inline" style="width: 100px;">
                <input type="text" name="endTime" lay-verify="date" id="date1" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">学校名称</label>
            <div class="layui-input-inline">
                <input type="text" name="schoolName"  lay-verify="email" autocomplete="off" class="layui-input" >
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">学历</label>
            <div class="layui-input-inline">
                <input type="text" name="xueLi"  autocomplete="off" class="layui-input" >
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">专业</label>
            <div class="layui-input-inline">
                <input type="text" name="professional"  autocomplete="off" class="layui-input" >
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">统招</label>
        <div class="layui-input-block">
            <input type="radio" name="tongZhao" value="1" title="是" checked="">
            <input type="radio" name="tongZhao" value="2" title="否">
        </div>
    </div>
</form>
</body>
<script>
    var $;
    layui.use(['form', 'layedit', 'laydate'], function() {
        var form = layui.form,
            layer = layui.layer,
            layedit = layui.layedit,
            laydate = layui.laydate;
        $=layui.jquery;
        //日期
        laydate.render({
            elem: '#date',
            type:'datetime'
        });
        laydate.render({
            elem: '#date1',
            type:'datetime'
        });
    })

    function saveJiaoYu() {
        $.ajax({
            url:'../web/saveJiaoYu',
            data:$("#jiaoYuForm").serialize(),
            type:'post',
            dataType:'json',
            success:function (data) {
                if(!data){
                    layer.alert("修改失败",{icon:0})
                }
            }
        })
    }
</script>
</html>